package com.geyue.core.model;

import com.geyue.common.base.model.Model;
import lombok.Data;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

import javax.persistence.Column;
import javax.persistence.Table;
import javax.persistence.Transient;

/**
 * Created by Lyon on 2017/5/12.
 */
@Data
@Table(name = "integral_for")
public class IntegralFor extends Model {

    //提交
    public static final int submit = 0;
    //通过审核
    public static final int ok = 1;
    //不通过
    public static final int no = 2;

    private Integer uid;

    @NotBlank
    @Length(min = 11,max = 11)
    @Column(name = "for_mobile")
    private String forMobile;
    @NotBlank
    @Length(min = 11,max = 11)
    private String mobile;

    private Integer integral;

    @Column(name = "is_ok")
    private Integer isOk;

    @Transient
    private String name;
    @Transient
    private String forName;
}
